<?php 
header("Content-type: text/html; charset=utf-8");

$dbhost = 'localhost';
$dbuser = 'root';
$dbpwd  ='Dongmai2015';
$dbName ='we7';

$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);

$sql="select count(id) from ka_tong where num='2'   ";
$query = $mysqli->query($sql);
$row=$query->fetch_array();
if (!empty($row)) {
	echo '东区:'.$row[0];
	echo "<br /><br />";
}


$sql="select count(id) from ka_tong where num='3'   ";
$query = $mysqli->query($sql);
$row=$query->fetch_array();
if (!empty($row)) {
	echo '南区:'.$row[0];
	echo "<br /><br />";
}


$sql="select count(id) from ka_tong where num='4'   ";
$query = $mysqli->query($sql);
$row=$query->fetch_array();
if (!empty($row)) {
	echo '中区:'.$row[0];
	echo "<br /><br />";
}


$sql="select count(id) from ka_tong where num='5'   ";
$query = $mysqli->query($sql);
$row=$query->fetch_array();
if (!empty($row)) {
	 echo '北区:'.$row[0];
	 echo "<br /><br />";
}









 